package cn.wolfcode.luowowo.article.service;


import cn.wolfcode.luowowo.article.domain.StrategyContent;
import cn.wolfcode.luowowo.article.domain.StrategyDetail;
import cn.wolfcode.luowowo.article.query.StrategyDetailQuery;
import cn.wolfcode.luowowo.article.vo.StatisVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 攻略明细服务
 */
public interface IStrategyDetailService {
    /**
     * 分页查询
     * @param qo
     * @return
     */
    PageInfo query(StrategyDetailQuery qo);
    /**
     * 查询所有
     * @return
     */
    List<StrategyDetail> list();
    /**
     * 查单个
     * @param id
     * @return
     */
    StrategyDetail get(Long id);

    void saveOrUpdate(StrategyDetail strategyDetail, String tags);

    StrategyContent getContentByDetailId(Long detailId);

    String getTagsByDetailId(Long detailId);

    List<StrategyDetail> getViewnumTop3(Long destId);

    void updateStrategyStatisVo(StatisVo statisVo);
}
